<?php
/**
 * Elgg owner block
 * Displays page ownership information
 *
 * @package Elgg
 * @subpackage Core
 *
 */

elgg_push_context('owner_block');

// groups and other users get owner block
$owner = elgg_get_page_owner_entity();
if ($owner instanceof ElggGroup || $owner instanceof ElggUser) {

	$header = elgg_view_entity_icon($owner, 'medium');
	$header .=elgg_view('ownerblock_golfscore');
	//$body = elgg_view_menu('owner_block', array('entity' => $owner, 'sort_by' => 'priority'));

	//$body .= elgg_view('page/elements/owner_block/extend', $vars);

	echo elgg_view('page/components/module', array(
		'header' => $header,
		
	));
}

elgg_pop_context();